package com.sright.bcard.content.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.entity.CardUserCompanyInfoDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardUserCompanyInfoDOMapper extends BaseMapper<CardUserCompanyInfoDO> {
    List<CardUserCompanyInfoDO> selectByCardUserInfoIds(@Param("cardUserInfoIdList") List<Long> cardUserInfoIdList);

    List<CardUserCompanyInfoDO> selectByCompanyIds(@Param("companyIds") List<Long> companyIds);

    List<CardUserCompanyInfoDO> selectByCardUserInfoId(@Param("cardUserInfoId")Long cardUserInfoId);

    CardUserCompanyInfoDO selectByIdAndCompanyId(@Param("cardUserCompanyInfoId")Long cardUserCompanyInfoId, @Param("companyId") Long companyId);

    void deleteById(@Param("id") Long id);

    CardUserCompanyInfoDO selectByCardUserInfoIdAndCompanyId(@Param("cardUserInfoId") Long cardUserInfoId, @Param("companyId") Long companyId);
}